import request from '@/utils/request'

// 查询牛信息列表
export function listCowEssen(query) {
  return request({
    url: '/dgw/cowEssen/list',
    method: 'get',
    params: query
  })
}

// 查询牛信息详细
export function getCowEssen(cowEssenId) {
  return request({
    url: '/dgw/cowEssen/' + cowEssenId,
    method: 'get'
  })
}

// 新增牛信息
export function addCowEssen(data) {
  return request({
    url: '/dgw/cowEssen',
    method: 'post',
    data: data
  })
}

// 修改牛信息
export function updateCowEssen(data) {
  return request({
    url: '/dgw/cowEssen',
    method: 'put',
    data: data
  })
}

// 删除牛信息
export function delCowEssen(cowEssenId) {
  return request({
    url: '/dgw/cowEssen/' + cowEssenId,
    method: 'delete'
  })
}

// 导出牛信息
export function exportCowEssen(query) {
  return request({
    url: '/dgw/cowEssen/export',
    method: 'get',
    params: query
  })
}
// 查询用户信息
export function listUser(query) {
  return request({
    url: '/dgw/cowEssen/queryUser',
    method: 'get',
    params: query
  })
}
